package com.hoshiibuy.fileServer.service;

import java.io.FileInputStream;
import java.io.InputStream;

import com.hoshiibuy.fileServer.result.Result;

/**
 * 文件对象操作服务接口类
 * @author Mr.wu
 *
 */
public interface FileObjectService {

	/**
	 * 上传一个文件对象
	 * @param bucketName
	 * @param folder
	 * @param objectKey
	 * @param fileStream
	 * @return
	 * @throws Exception
	 */
	public Result<String> uploadFile(String bucketName, String folder,String objectKey, InputStream fileStream) throws Exception;
	
	/**
	 * 删除一个文件对象
	 * @param bucketName
	 * @param objectKey
	 * @return
	 */
	public Result<String> deleteFile(String bucketName,String objectKey);

	Result<String> test();
}
